package com.infore.common.model.entity.exchange;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.infore.common.base.BaseModel;
import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * <p>
 * Hadoop集群服务
 * </p>
 *
 * @author lijh
 * @since 2023-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Services extends BaseModel<Services> {

private static final long serialVersionUID=1L;

    @TableId(value = "SERVICE_ID", type = IdType.UUID)
    private Long serviceId;
    @TableField("OPTIMISTIC_LOCK_VERSION")
    private Long optimisticLockVersion;
    @TableField("NAME")
    private String name;
    @TableField("SERVICE_TYPE")
    private String serviceType;
    @TableField("CLUSTER_ID")
    private Long clusterId;
    @TableField("MAINTENANCE_COUNT")
    private Integer maintenanceCount;
    @TableField("DISPLAY_NAME")
    private String displayName;
    @TableField("GENERATION")
    private Long generation;


    @Override
    protected Serializable pkVal(){
                return this.serviceId;
    }

}
